const Router = require('koa-router')
const { getMenuList,getCunt,getOneList,addList,editList,deleteList,getAllSearch } = require('../controller/menu.controller')
const { auth } = require("../middleware/admin.middleware")
const router = new Router({prefix:'/menu'})

router.post('/list',getMenuList)
router.post('/all',auth,getCunt)
router.post('/add',auth,addList)
router.post('/edit',auth,editList)
router.post('/delete',auth,deleteList)
router.post('/detail',auth,getOneList)
router.post('/alllist',auth,getAllSearch)
module.exports = router